import sys

f = open(sys.argv[1])
for line in f:
    line = line.strip()
    parts = line.split()

    sql = "insert into user_rating(id,item_id,user_option,clicked_time) values(%s,%s,%s,%s);" % (parts[0],parts[1],parts[2],parts[3])
    print sql

    
